package com.yxw.springmvc.userBehavior.util;

import org.apache.commons.lang3.RandomStringUtils;

import java.util.UUID;

/**
 * 随机数工具类
 * Author: yangxianwang
 * Date:   2016/9/23
 * Time:   8:53
 */
public class RandomCodeUtils {
    public static String random(int count) {
        return RandomStringUtils.random(count, false, true);
    }

    public static String randomNumeric(int count) {
        return RandomStringUtils.randomNumeric(count);
    }

    public static String random() {
        return random(6);
    }
}
